package com.woniuxy.community_life.mapper;

import com.woniuxy.community_life.pojo.Dynamic;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DynamicMapper {
    int deleteByPrimaryKey(Integer dId);

    int insert(Dynamic record);

    int insertSelective(Dynamic record);

    Dynamic selectByPrimaryKey(Integer dId);

    int updateByPrimaryKeySelective(Dynamic record);

    int updateByPrimaryKey(Dynamic record);

    @Select("select*from t_dynamic where t_remitid=#{tRemitid} and flag=0 order by lasted_time desc")
    List<Dynamic> getMessage(Integer tRemitid);
}